/**
 * 深浅拷贝
 */

function shallow() {
    let arr1 = {
        name: '111',
        age: 18,
        list:[{sex:0,grade:98}],
    }
    for (let key in arr1) {
        let arr2 =arr1[key]
        console.log('arr2',arr2);
    }
    // let arr2 = [3, 2, { age: 18 }]
    // let arr3 = arr1.concat(arr2)
    // console.log('arr3', arr3);
    // arr3[2] = { name: '李四' }
    // arr3[5] = { age: 20 }
    
    // arr3 = arr1.slice(1)
    // console.log('arr31',arr3);
    // console.log('arr1',arr1);
    // console.log('arr2',arr2);
}
shallow()